package com.ego.item.api;

import com.ego.item.pojo.Specification;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("spec")
public interface SpecificationApi {

    /**
     * 查询分类对应的规格参数
     * @param cid
     * @return
     */
    @GetMapping("{cid}")
    ResponseEntity<String> querySpecificationByCategoryId(@PathVariable("cid") Long cid);
}
